package Ticketing.test001;

/**
 * @Author czl
 * @Date 2024-03-21
 */
public class WindowThread extends Thread{

    private Film film;

    public WindowThread(){

    }

    public WindowThread(Film film , String threadName){
        super(threadName);
        this.film=film;
    }

    @Override
    public void run() {
        this.film.sell();
    }
}
